package com.dms.modules.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user_search_history")
@ApiModel("用户搜索历史")
public class UserSearchHistory {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;
    
    @ApiModelProperty("用户ID")
    private Long userId;
    
    @ApiModelProperty("搜索关键词")
    private String keyword;
    
    @ApiModelProperty("搜索次数")
    private Integer searchCount;
    
    @ApiModelProperty("首次搜索时间")
    private LocalDateTime firstSearchTime;
    
    @ApiModelProperty("最后搜索时间")
    private LocalDateTime lastSearchTime;
    
    @TableLogic
    @ApiModelProperty("是否删除：0-未删除 1-已删除")
    private Integer deleted;
} 